package com.deyuans.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.deyuans.domian.Banktable;
import com.deyuans.mapper.BanktableMapper;
import com.deyuans.service.BanktableService;
import com.deyuans.uitls.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/credit")
public class CreditController {
    @Autowired
    private BanktableService banktableService;

    /**
     * 授信
     */
    @PostMapping("/application")
    public R CreditOpe7rate(@RequestBody String text){
        return null;
    }
    @PostMapping("findBanktable")
    public R findCardnumberandCardtype(@RequestBody Banktable banktable){
        R findcardtype = banktableService.findcardtype(banktable);
        return findcardtype;
    }

}
